import * as qiniu from 'qiniu-js'
import request from "@/api/utils/request.js";

// const qiniu = require('qiniu-js')
export const getAllVideos = async() => await request.get("video/getAllVideo")

 // export const logout = async() => await request.post("/logout")


// category

// export const getAllVideos = async(vId) => await request.get(`tag/${vId}`)

export const getVideosByCategoryId = async (cId) => await request.get(`video/category/${cId}`)
export const getVideosByUserId = async (uId) => await request.get(`video/user/${uId}`)

export const getVideosByFavoritesId = async (fId) => await request.get(`video/favorites/${fId}`)


export const getVideoById = async (vId) => await request.get(`video/${vId}`)



